package com.woniuxy.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.dao.PlanMapper;
import com.woniuxy.pojo.Plan;
import com.woniuxy.service.PlanService;

@Service
public class PlanServiceImpl implements PlanService{

	@Autowired
	private PlanMapper planMapper;
	
	@Override
	public List<Plan> getAllPlan(String class_name) {
		// TODO Auto-generated method stub
		return planMapper.getAllPlan(class_name);
	}

	@Override
	public Plan PlanById(Integer id) {
		// TODO Auto-generated method stub
		return planMapper.PlanById(id);
	}

	@Override
	public void PlanById2Staff(Integer id) {
		// TODO Auto-generated method stub
		planMapper.PlanById2Staff(id);
	}

	@Override
	public void updPlan(Plan plan) {
		// TODO Auto-generated method stub
		planMapper.updPlan(plan);
	}

	@Override
	public Plan getOnePlanById(Integer id) {
		// TODO Auto-generated method stub
		return planMapper.getOnePlanById(id);
	}

	@Override
	public void savePlan(Plan plan) {
		// TODO Auto-generated method stub
		planMapper.savePlan(plan);
	}

	@Override
	public void delPlan(Integer[] id) {
		// TODO Auto-generated method stub
		planMapper.delPlan(id);
	}

	@Override
	public void addCourse2Plan(Integer pid, Integer cid) {
		// TODO Auto-generated method stub
		planMapper.addCourse2Plan(pid, cid);
	}

	@Override
	public void addStaff2Plan(Integer pid, Integer sid) {
		// TODO Auto-generated method stub
		planMapper.addStaff2Plan(pid, sid);
	}

	@Override
	public void delCourse2Plan(Map map) {
		// TODO Auto-generated method stub
		planMapper.delCourse2Plan(map);
	}

	@Override
	public void delStaff2Plan(Map map) {
		// TODO Auto-generated method stub
		planMapper.delStaff2Plan(map);
	}
}
